//
//  AYMCommonGoodViewController.m
//  QuickCure
//
//  Created by kangkang on 16/5/5.
//  Copyright © 2016年 ayumi. All rights reserved.
//

#import "AYMCommonGoodViewController.h"

@interface AYMCommonGoodViewController ()<UIWebViewDelegate>

@end

@implementation AYMCommonGoodViewController

- (void)viewDidLoad {
    [super viewDidLoad];
     self.navigationItem.title = @"公益事业";
    
    [self setupUI];
    
}

-(void)setupUI{
    
    UIWebView *webView = [[UIWebView alloc] init];
    
    webView.delegate = self;
    
    webView.frame = self.view.frame;
    
    NSURL *url = [NSURL URLWithString:@"http://202.106.210.115:18080/hyde-pluto-h360/nt/appEntrance.htm"];
    NSURLRequest * requst = [NSURLRequest requestWithURL:url];
    
    [webView loadRequest:requst];
    
    [self.view addSubview:webView];
    
}


-(void)webViewDidStartLoad:(UIWebView *)webView{
    
    [SVProgressHUD show];
    
}

-(void)webViewDidFinishLoad:(UIWebView *)webView{
    
    [SVProgressHUD dismiss];
    
}

-(BOOL)webView:(UIWebView *)webView shouldStartLoadWithRequest:(NSURLRequest *)request navigationType:(UIWebViewNavigationType)navigationType{
    
    return YES;
    
}



@end
